<template>
  <view class="profile-page">
    <!-- 头部区域 -->
    <view class="header">
      <view class="user-info">
        <image src="/static/images/avatar.jpg" mode="aspectFill" class="avatar" />
        <view class="user-details">
          <text class="username">Vanshika</text>
          <text class="email">vanshika@example.com</text>
        </view>
      </view>
    </view>

    <!-- 功能列表 -->
    <view class="function-list">
      <view class="function-item">
        <image src="/static/images/settings-icon.png" mode="aspectFit" class="function-icon" />
        <text class="function-text">Settings</text>
        <image src="/static/images/arrow-right.png" mode="aspectFit" class="arrow-icon" />
      </view>
      <view class="function-item">
        <image src="/static/images/language-icon.png" mode="aspectFit" class="function-icon" />
        <text class="function-text">Language</text>
        <image src="/static/images/arrow-right.png" mode="aspectFit" class="arrow-icon" />
      </view>
      <view class="function-item">
        <image src="/static/images/help-icon.png" mode="aspectFit" class="function-icon" />
        <text class="function-text">Help & Support</text>
        <image src="/static/images/arrow-right.png" mode="aspectFit" class="arrow-icon" />
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'TravelProfilePage',
  data() {
    return {
      // 可以添加数据
    }
  }
}
</script>

<style>
.profile-page {
  font-family: 'Poppins', sans-serif;
  background-color: #FFFFFF;
  min-height: 100vh;
  padding: 20px;
}

.header {
  margin-bottom: 30px;
  padding: 20px;
}

.user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.username {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
}

.email {
  font-size: 14px;
  color: #89807A;
}

.function-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px;
}

.function-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #F0F0F0;
  border-radius: 16px;
}

.function-icon {
  width: 24px;
  height: 24px;
}

.function-text {
  flex: 1;
  font-size: 16px;
  color: #000000;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

/* 底部菜单栏样式 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #FFFFFF;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #F5F5F5;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  position: relative;
}

.nav-icon {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

.nav-text {
  font-size: 12px;
  font-weight: 500;
  color: #89807A;
  transition: all 0.3s ease;
}

.nav-item.active {
  transform: translateY(-2px);
}

.nav-item.active .nav-text {
  color: #26C992;
  font-weight: 600;
}

.nav-item.active .nav-icon {
  opacity: 1;
  transform: scale(1.1);
}

.nav-item:not(.active) .nav-icon {
  opacity: 0.5;
}

.nav-item:active {
  transform: scale(0.95);
}

/* 调整内容区域，为底部菜单留出空间 */
.function-list {
  padding-bottom: 90px;
}
</style> 